]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
quickSettings: Add a "Power Settings" entry to the Power Profiles submenu
authorsunflowerskater <sunflowerskater@tutanota.com>
Fri, 13 Jan 2023 16:09:25 +0000 (13:09 -0300)
committerMarge Bot <marge-bot@gnome.org>
Fri, 13 Jan 2023 18:16:29 +0000 (18:16 +0000)
This change adds the shortcut so it can be accessible by devices without a battery and to keep consistency with other submenus like the Wi-Fi submenu and the upcoming Bluetooth submenu (Teams/Design/os-mockups#178).

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6111

Part of <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2559>

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2559>

js/ui/status/powerProfiles.js

index e15208d8ffb9e75cdaeebcf9c9c2f7dec356d036..05d66824f3c35681977da6cfa74f3267653bc3bb 100644 (file)
@@ -68,6 +68,8 @@ class PowerProfilesToggle extends QuickMenuToggle {
         this._profileSection = new PopupMenu.PopupMenuSection();
         this.menu.addMenuItem(this._profileSection);
         this.menu.setHeader('power-profile-balanced-symbolic', _('Power Profiles'));
+        this.menu.addSettingsAction(_('Power Settings'),
+            'gnome-power-panel.desktop');
 
         this._sync();
     }